package cheme.ProcessEditor.Parts.Streams;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ConnectionEditPolicy;
import org.eclipse.gef.requests.GroupRequest;

import cheme.ProcessModel.Cmds.DeleteStreamCmd;
import cheme.ProcessModel.ProcessUnits.Streams.AbstractStream;

public class ChemeConnectionPolicy extends ConnectionEditPolicy
{
	protected Command getDeleteCommand(GroupRequest request)
	{
		DeleteStreamCmd command = new DeleteStreamCmd((AbstractStream)getHost()
				.getModel());
		return command;
	}
}
